<?php


namespace app\common\enum\hotel;


/**
 * @projectName src
 */
class MenuEnum
{
    /**
     * 否
     */
    const NO = 0;
    /**
     * 是
     */
    const YES = 1;

    public static function getMenuStatus($value = true)
    {
        $data = [
            self::YES => '正常',
            self::NO=>'禁用',
        ];
        if($value === true){
            return $data;
        }
        return $data[$value];
    }

    public static function getMenuShowAndIsTargetStatus($value = true)
    {
        $data = [
            self::YES => '否',
            self::NO=>'是',
        ];
        if($value === true){
            return $data;
        }
        return $data[$value];
    }
}